#!/bin/bash
doCheck (){
   rs=$?
   if [ $rs -ne 0 ]
   then
        echo "\033[41;37m $1 \033[0m"
        exit
   fi
}

host=192.168.1.120
user=root
echo "\033[41;37m 请输入服务器密码: \033[0m"
ssh ${user}@${host} "sh /root/deploy.sh"
